<?php
//==============================CONFIG PACKAGE===========================
define("INCLUDE_PACKAGE",'.' . PATH_SEPARATOR . './private/lib/Renza/'
                             . PATH_SEPARATOR . './private/lib/Renza/DB/'
                             . PATH_SEPARATOR . './private/lib/Smarty/'
                             . PATH_SEPARATOR . './application/controller/base/'
                             . PATH_SEPARATOR . './application/controller/extension/'
                             . PATH_SEPARATOR . './application/controller/impl/'
                             . PATH_SEPARATOR . './application/controller/ajax/'
                             . PATH_SEPARATOR . './application/controller/service/'
                             . PATH_SEPARATOR . './application/model/business/base/'
                             . PATH_SEPARATOR . './application/model/business/impl/'
                             . PATH_SEPARATOR . './application/model/business/orm/'
                             . PATH_SEPARATOR . './application/model/business/builder/'
                             . PATH_SEPARATOR . './application/model/business/bl/'
                                . get_include_path());

//============================DIR=============================================
define('APPLICATION_DIR', str_replace('\\', '/', realpath("application" . '/..')));
define("TEMPLATE_DIR", APPLICATION_DIR.'/application/view/template/default/');
define("TEMPLATE_COMPILE_DIR", APPLICATION_DIR.'/application/view/template_pub/default/');
define("LANGUAGE_DIR", APPLICATION_DIR.'/private/language/');
define("ERROR_LOG_DIR", APPLICATION_DIR.'/application/errors.log');
define("ERROR_DISPLAY",1); //0 (not diplay error) or 1 (display error), 2 (forward to page fault)

//=============================DEFAULT=========================================
define("DEFAULT_CONTROLLER_ACTION","display");
define("DEFAULT_CONTROLLER_CLASS_SUFFIX","Controller");
define("DEFAULT_AJAX_CLASS_SUFFIX","Ajax");
define("DEFAULT_SERVICE_CLASS_SUFFIX","Service");
define("LANGUAGE_SUPPORT","en,vn");

//=============================BULK=====================================
define("BULK_SELECT_MAX_ROW",500);
define("BULK_INSERT_MAX_ROW",3000);

//==============================DATE FORMAT =============================
define("SQL_DATETIME_FORMAT","Y-m-d H:i:s");
define("VIEW_DATETIME_FORMAT","d-m-Y H:i:s");
define("SQL_DATE_FORMAT","Y-m-d");
define("VIEW_DATE_FORMAT","d-m-Y");
define("RAND_CODE_DATETIME_FORMAT","Ymdhis");

//==============================PAGER ====================================
define("NUMBER_RECORD_PER_PAGE",13);
define("TOTAL_ITEM_PAGE_PER_PAGE",5);